package org.blogwu.learn.designpattern.chapter13.v2;

public class Main {
    private static final String reportTypes[] = {"每日项目进度", "增长量统计", "固定资产统计", "利润表", "资产负债表"};

    public static void main(String[] args) {
        for (int i = 0; i < 20; i++) {
            String reportType = reportTypes[(int) (Math.random() * reportTypes.length)];
            TeamReport manager = (TeamReport) ReportFactory.getReport(reportType);
            System.out.println(manager.getEportContent());
        }
    }
}
